package .domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName sys_course
 */
@TableName(value ="sys_course")
public class SysCourse implements Serializable {
    /**
     * 主键
     */
    @TableId
    private Integer id;

    /**
     * 课程名称
     */
    private String courseName;

    /**
     * 课程介绍
     */
    private String introduce;

    /**
     * 所属专业
     */
    private Integer tomajorId;

    /**
     * 课程编号
     */
    private String courseNum;

    /**
     * 课程容量
     */
    private String capacity;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 课程名称
     */
    public String getCourseName() {
        return courseName;
    }

    /**
     * 课程名称
     */
    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    /**
     * 课程介绍
     */
    public String getIntroduce() {
        return introduce;
    }

    /**
     * 课程介绍
     */
    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    /**
     * 所属专业
     */
    public Integer getTomajorId() {
        return tomajorId;
    }

    /**
     * 所属专业
     */
    public void setTomajorId(Integer tomajorId) {
        this.tomajorId = tomajorId;
    }

    /**
     * 课程编号
     */
    public String getCourseNum() {
        return courseNum;
    }

    /**
     * 课程编号
     */
    public void setCourseNum(String courseNum) {
        this.courseNum = courseNum;
    }

    /**
     * 课程容量
     */
    public String getCapacity() {
        return capacity;
    }

    /**
     * 课程容量
     */
    public void setCapacity(String capacity) {
        this.capacity = capacity;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SysCourse other = (SysCourse) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCourseName() == null ? other.getCourseName() == null : this.getCourseName().equals(other.getCourseName()))
            && (this.getIntroduce() == null ? other.getIntroduce() == null : this.getIntroduce().equals(other.getIntroduce()))
            && (this.getTomajorId() == null ? other.getTomajorId() == null : this.getTomajorId().equals(other.getTomajorId()))
            && (this.getCourseNum() == null ? other.getCourseNum() == null : this.getCourseNum().equals(other.getCourseNum()))
            && (this.getCapacity() == null ? other.getCapacity() == null : this.getCapacity().equals(other.getCapacity()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCourseName() == null) ? 0 : getCourseName().hashCode());
        result = prime * result + ((getIntroduce() == null) ? 0 : getIntroduce().hashCode());
        result = prime * result + ((getTomajorId() == null) ? 0 : getTomajorId().hashCode());
        result = prime * result + ((getCourseNum() == null) ? 0 : getCourseNum().hashCode());
        result = prime * result + ((getCapacity() == null) ? 0 : getCapacity().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", courseName=").append(courseName);
        sb.append(", introduce=").append(introduce);
        sb.append(", tomajorId=").append(tomajorId);
        sb.append(", courseNum=").append(courseNum);
        sb.append(", capacity=").append(capacity);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}